package com.bgs.eat.songMenu.mapper;

import com.bgs.eat.config.BaseMapper;
import com.bgs.eat.songMenu.entity.SongMenuToTypesEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SongMenuToTypesMapper extends BaseMapper<SongMenuToTypesEntity> {

    @Select("select DISTINCT(t_id) from song_menu_to_types order by rand() limit 5")
    List<Integer> getRecommendTId();
}
